package com.shangqing.system.droughtinformation.service.impl;

import com.shangqing.system.droughtinformation.entity.Vegetation;
import com.shangqing.system.droughtinformation.mapper.VegetationMapper;
import com.shangqing.system.droughtinformation.service.IvegetationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class VegetationServiceImpl implements IvegetationService {
    @Autowired
    private VegetationMapper vegetationMapper;
    @Override
    public List<Vegetation> getAll() {

        return vegetationMapper.getAll();
    }

    @Override
    public List<Vegetation> getByYear(int year) {
        return vegetationMapper.getByYear(year);
    }

    @Override
    public List<Vegetation> getByName(String name) {
        return vegetationMapper.getByName(name);
    }

    @Override
    public List<Vegetation> getById(int id) {
        return vegetationMapper.getById(id);
    }
}
